home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19970626-19970929 / 000093_news@newsmaster….columbia.edu _Tue Jul 22 21:51:11 1997.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id VAA09051
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Tue, 22 Jul 1997 21:51:11 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id VAA05101
  7.     for kermit.misc@watsun; Tue, 22 Jul 1997 21:51:10 -0400 (EDT)
  8. Path: news.columbia.edu!psinntp!howland.erols.net!feeder.chicago.cic.net!ftpbox.mot.com!mothost.mot.com!news-in.cig.mot.com!news.ecid.cig.mot.com!merlin!cornellr
  9. From: cornellr@merlin.ecid.cig.mot.com (Robert Cornell)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: \fFiles()
  12. Date: 22 Jul 1997 18:10:00 GMT
  13. Organization: Motorola Ltd., European Cellular Infrastructure Division
  14. Lines: 28
  15. Distribution: world
  16. Message-ID: <1997Jul22.190800@merlin.ecid.cig.mot.com>
  17. NNTP-Posting-Host: buzzard.ecid.cig.mot.com
  18. Keywords: \fFiles()
  19. Xref: news.columbia.edu comp.protocols.kermit.misc:7371
  20.  
  21. I have been pulling my hair out trying to evaluate whether a file is a
  22. file or a directory.
  23. I think I've now got it down...
  24.  
  25. [/home/cornellr] C-Kermit>mkdir dummy
  26. [/home/cornellr] C-Kermit>echo \fFiles(dummy/*)
  27. 0
  28. [/home/cornellr] C-Kermit>echo \fFiles(dummy/.*)
  29. 2
  30.  
  31. Can I safely assume this is a feature and that the fact that * dosen't match
  32. . and .. is because:
  33.  
  34. [/home/cornellr] C-Kermit>echo \fFiles(*)
  35. 27
  36. [/home/cornellr] C-Kermit>echo \fFiles(.*)
  37. 40
  38.  
  39. i.e. you don't want to see hidden(?) files.
  40.  
  41. Further, how can I tell if its a directory/character special/link if I haven't
  42. got read permissions on it (without using shell).
  43.  
  44. Robert Cornell
  45. -------------------------------------------------
  46. ∩┐╜  Robert Cornell - cornellr@ecid.cig.mot.com
  47.   Mountfield +44 1424 432627 Fax +44 1424 441144
  48. Motorola ECID +44 1793 566344 Fax +44 1793 420915